﻿using AutoMapper.Internal.Mappers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using ThridGroup.ERP.DTO.MaterielDto;
using Volo.Abp;
using Volo.Abp.Application.Services;
using Volo.Abp.ObjectMapping;

namespace ThridGroup.ERP.ProductionSystem
{
    /// <summary>
    /// 物料信息接口
    /// </summary>
    public   interface IMaterielServices:IApplicationService
    {
        /// <summary>
        /// 获取物料分类级联树形结构
        /// </summary>
        /// <returns></returns>
        Task<List<MaterielTypeTreeSelectDto>> GetMaterialTypeTree();
    
        /// <summary>
        /// 添加物料信息
        /// </summary>
        /// <returns></returns>
        Task<int> CreateMateriel(CreateMaterielDto createMaterielDto);
      
        /// <summary>
        /// 显示物联信息
        /// </summary>
        /// <returns></returns>
        Task<List<CreateMaterielDto>> QueryMateriel(GetMaterielDto getMaterielDto);
        /// <summary>
        /// 修改物料信息
        /// </summary>
        /// <param name="dto">物料DTO</param>
        /// <returns>1成功，0失败</returns>
        Task<int> UpdateMateriel(CreateMaterielDto dto);


        /// <summary>
        /// 批量删除物料信息
        /// </summary>
        /// <param name="ids">要删除的物料ID列表</param>
        Task BatchDeleteMateriel(List<int> ids);
       

    }
}
